<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/13
 * Time: 18:37
 */

namespace app\flower\model;
use think\Model;

class FlowerUserinfoModel extends Model
{
    /**
     * 将时间的时间戳改成时间格式
     */
    protected function getDottimeAttr($dottime){
        if(!empty($dottime)){
            return date('Y-m-d H:i:s',$dottime);
        }else{
            return $dottime;
        }
    }
}